import 'package:flutter_juwo/common/common_index.dart';
import 'package:flutter/material.dart';

///************************
/// @auther nb
/// @function 公告详情
/// @创建日期 2019/8/12 10:56
///************************
class NoticeDetails extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    var data = {
      "title": "点击领取支付宝红包",
      "isNew": false,
      "time": "2019年7月1日",
      "content":
          "打开支付宝首页搜5219384领红包，点击领取支付宝红包,打开支付宝首页搜5219384领红包，点击领取支付宝红包,打开支付宝首页搜5219384领红包，点击领取支付宝红包,打开支付宝首页搜5219384领红包，点击领取支付宝红包,打开支付宝首页搜5219384领红包，点击领取支付宝红包,打开支付宝首页搜5219384领红包，点击领取支付宝红包",
    };

    return Scaffold(
      backgroundColor: Colors.white,
      appBar: UiUtils.appBar(context, "公告详情"),
      body: Column(
        children: <Widget>[
          UiUtils.dividerWidget(ScreenUtil().setWidth(20)),
          Expanded(
            flex: 1,
            child: EasyRefresh(
                child: ListView(
              children: <Widget>[
                Container(
                  margin: EdgeInsets.only(top: ScreenUtil().setWidth(40)),
                  alignment: Alignment.center,
                  child: Text(
                    "${data["title"]}",
                    style: TextStyles.custom(
                        30, Color(0xFF333333), Font.PingFangBlod),
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(
                      top: ScreenUtil().setWidth(34),
                      right: ScreenUtil().setWidth(30)),
                  alignment: Alignment.centerRight,
                  child: Text(
                    "${data["time"]}",
                    style: TextStyles.custom(
                        24, Color(0xFF999999), Font.PingFangBlod),
                  ),
                ),
                Container(
                  margin: EdgeInsets.only(
                      top: ScreenUtil().setWidth(34),
                      right: ScreenUtil().setWidth(30),
                      left: ScreenUtil().setWidth(30)),
                  child: Text(
                    "${data["content"]}",
                    style: TextStyles.custom(
                        24, Color(0xFF666666), Font.PingFangBlod),
                  ),
                )
              ],
            )),
          )
        ],
      ),
    );
  }
}
